package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.Collect;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.service.AdminCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.controller
 * @date 2020/12/5 19:27
 * @Copyright © 暂时还没有
 */
@RestController
@RequestMapping("admin/collect")
public class AdminCollectController {

    @Autowired
    AdminCollectService adminCollectService;
    @RequestMapping("list")
    public BaseRespVo adminCollectList
            (Integer page, Integer limit, String sort, String order,Integer userId,Integer valueId){

        ListData<Collect> listData = adminCollectService.adminCollectList(page,limit,sort,order,userId,valueId);
        return BaseRespVo.ok(listData);
    }

}
